202404142147 如何在shell中遍历数字
202404142147 如何在shell中遍历数字
for i in {0..10}; do
echo ${i}
done
# seq 1 3 10 # 步长3
for i in $(seq 1 10); do
echo ${i}
done
本站总访问量次 本站访客数人次 本文总阅读量次
for i in {0..10}; do
echo ${i}
done
# seq 1 3 10 # 步长3
for i in $(seq 1 10); do
echo ${i}
done